package StringUtils;

public class TestString {

	public static void main(String[] args) {
		// String a = "123,456,789";
		// a = "'"+a.replace(",","','")+"'";
		// System.out.println(a);
		String a[] = { "123", "456", "789" };
		StringBuffer sb = new StringBuffer("");
		for (int i = 0; i < a.length; i++) {
			sb = sb.append(a[i] + ",");
		}
		String str = sb.substring(0, sb.length() - 1).toString().replace(",",
				"','");
		System.out.println(str);
	}
}
